// import request from '@/utils/request'
import { request } from '@/utils/request';
import { request3 } from '@/utils/request3';

// 抓拍库检索
export function searchFace(data) {
	return request({
		'url': '/capture/face/search',
		'method': 'post',
		'data': data
	})
}
// 注册库检索
export function recogFace(data) {
	return request({
		'url': '/face/recog',
		'method': 'post',
		'data': data
	})
}
// 注册库 人像库下拉框
export function DBFace(data) {
	return request({
		'url': '/facedb/list',
		'method': 'post',
		'data': data
	})
}

// 注册库 车辆库下拉框
export function DBVehicle(data) {
	return request({
		'url': '/vehicledb/list',
		'method': 'post',
		'data': data
	})
}

export function searchFace2(data) {
	return request3({
		// 'url': '/universe/manage/allstruct/face/recog',
		'url': '/bigdata/manage/capture/search/face',
		'method': 'post',
		'data': data
	})
}

export function recogFace2(data) {
	return request3({
		// 'url': '/universe/manage/recog/registerDb',
		'url': '/bigdata/manage/recog/registerDb',
		'method': 'post',
		'data': data
	})
}

export function correlationSearch(data) {
	return request3({
		// 'url': '/universe/manage/allstruct/correlation/search',
		'url': '/bigdata/manage/allstruct/correlation/search',
		'method': 'post',
		'data': data
	})
}

export function structureRecognize(data) {
	return request3({
		// 'url': '/universe/manage/ai/structureRecognize',
		'url': '/bigdata/manage/ai/structureRecognize',
		'method': 'post',
		'data': data
	})
}

export function DBFace2(data) {
	return request3({
		'url': '/universe/manage/facedb/list',
		'method': 'post',
		'data': data
	})
}
